#ifndef GLOBALDEF_H
#define GLOBALDEF_H
#include <QString>
#include <QMap>
#include "ettadatastruct.h"
#include <QTranslator>
#include <QRegExp>
#include <QValidator>

extern QString currentUsername;
extern QString currentPassword;
extern QTranslator * translator;
extern QString gLanguage;
extern double gVoltRatio;
extern double gSpeedRatio;
extern int gTableWidth; //pixel
extern int windowWidth;
extern QRegExp gUsernameRegExp;
extern QRegExp gPwRegExp;
extern QRegExp gParamNameRegExp;
extern QRegExp gParamCodeRegExp;
extern QRegExp gSerialCodeRegExp;
extern QValidator * gUsernameValidator;
extern QValidator * gPwValidator;
extern QValidator * gParamNameValidator;
extern QValidator * gParamCodeValidator;
extern QValidator * gSerialCodeValidator;

#endif // GLOBALDEF_H
